package com.kiven.file;

import java.io.File;

public class Test {
	public static void main(String[] args) throws Exception {
		File file = new File("/home/lijianbo/test/race/start.bin.zip");
		System.out.println(file);
		String fileName = file.getName();
		System.out.println(fileName.substring((fileName.length()-4),fileName.length()));
		/*System.out.println(file.listFiles().length);
		/*
		System.out.println("isFile:" + file.isFile());
		System.out.println("isDirectory:" + file.isDirectory());
		System.out.println("getAbsolutePath()" + file.getAbsolutePath());
		System.out.println("getCanonicalPath()" + file.getCanonicalPath());
		System.out.println("getFreeSpace():" +file.getFreeSpace());
		System.out.println("getName():" + file.getName());
		System.out.println("getParent():" + file.getParent());
		System.out.println("getPath():" + file.getPath());
		System.out.println("getTotalSpace():" + file.getTotalSpace());
		System.out.println("getUsableSpace():" + file.getUsableSpace());
		System.out.println("getAbsoluteFile():" + file.getAbsoluteFile());
		System.out.println("getCanonicalFile():" + file.getCanonicalFile());
		System.out.println("getParentFile():" + file.getParentFile());
		*/
		
		
	}

}
